# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=searchmonkey
pkgver=0.9.0
pkgrel=1
pkgdesc="Powerful GUI search utility for matching regex patterns, GTK version"
url="https://sourceforge.net/projects/searchmonkey/"
arch="!s390x !riscv64" # adwaita-icon-theme -> librsvg -> rust
license="GPL-3.0-or-later"
depends="adwaita-icon-theme"
makedepends="gtk+3.0-dev intltool poppler-dev libzip-dev"
subpackages="$pkgname-lang"
options="!check" # No test suite
source="https://github.com/antonialoytorrens/searchmonkey/releases/download/$pkgver/searchmonkey-$pkgver.tar.xz
	searchmonkey.desktop
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 "$srcdir"/searchmonkey.desktop \
		"$pkgdir"/usr/share/applications/searchmonkey.desktop
}

sha512sums="6da8a3f617c2148db0c09613d81e0f2ebcf61f1228672b2c1ab7ec3d2bb895657a2368c034ffaa62f3dc4904bd482364f70f03335e5ff96092b7adae340bc88f  searchmonkey-0.9.0.tar.xz
1a7454ddef24c5704e8de2337004dd0b493a476d0b4ca2bdbc330801e3d03e4b61b65f06253b258b1cbc8435ec0c8c96774c5df6f3c0f308efb5107a91391a73  searchmonkey.desktop"
